# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=spacenavd
pkgver=1.0
pkgrel=0
pkgdesc="user-space driver for 6-dof space-mice"
url="http://spacenav.sourceforge.net/"
arch="all !armhf !armv7 !x86" #armhf, armv7, x86: truct input_event' has no member named 'time'
license="GPL-3.0-or-later"
makedepends="libx11-dev libxi-dev libxtst-dev linux-headers"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/FreeSpacenav/spacenavd/archive/refs/tags/v$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
a9f243adc4285a9d9200fdf622e1dab87bee908a3e3ef896533405bd497d065a578cfbf8b507cd0c25a5db349ba1c3624c98a363477ecc989594bfb6c8529fa2  spacenavd-1.0.tar.gz
"
